﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using Microsoft.AspNet.SignalR;
using Microsoft.AspNet.SignalR.Hubs;

namespace FatServer.Hubs
{
    /*
     * 这里的 messageService 是用在 Javascript 里的
     * 例如
     * var hub = con.createHubProxy('messageService');
     */
    [HubName("messageService")]
    public class MessageHub : Hub
    {
        public void Send(string msg)
        {
            Clients.All.onSend(msg);
        }
    }
}